package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Menu;

import java.util.List;

public interface MenuService {

    void edit(Menu menu);

    Menu editById(Integer id);

    void deleteById(Integer id);

    PageResult findMenuPage(QueryPageBean queryPageBean);

    void add(Menu menu,Integer level);

    long findWhetherExists(String path);

    Integer findMaxPriority(Integer level);

    String findMaxPriorityByCondition(Integer level, String parentMenuId);


    Integer findParentId(String parentMenuId);

    List<Menu> findAll();

    Result getMenuList(String username);
}
